<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		
		<title>欢迎登录</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		
		<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/sys/common/logo2.ico"/>
		<link rel="icon" href="${pageContext.request.contextPath}/images/sys/common/logo2.ico"/>
		<link rel="Bookmark" href="${pageContext.request.contextPath}/images/sys/common/logo2.ico"/>
		
		<link media="screen" rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/sys/default/init.css"/>
		<link media="screen" rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/sys/default/login.css"/>
		
		<!--[if lte IE 6]>
		<style type="text/css">
		#loginMainTitle{behavior: url(${pageContext.request.contextPath}/css/png/iepngfix.htc);}
		#loginTop_desc_logo{behavior: url(${pageContext.request.contextPath}/css/png/iepngfix.htc);}
		</style>
		<![endif]-->
	</head>
	<body>
		<div id="loginTop">
			<div id="loginTop_desc">
				<div id="loginTop_desc_logo">
					<h2>
						51商城后台管理平台
					</h2>
				</div>
			</div>
		</div>
		<div id="loginMainTitle">
		</div>
		<div id="loginMain">
			<div id="content" >
				<div id="loginBox">
					<h2>
						Login to 51 Shop
					</h2>
					<form id="loginform" action="${pageContext.request.contextPath}/sys/login.do" method="post">
						<br/><br/><br/>
						<table>
							<tr>
								<th width="100">
									<label for="username">用户名:</label>
								</th>
								<td width="220">
									<input id="username" class="textFieldLogin" name="username" type="text" value="${loginModel.username}" onclick="this.parentNode.nextSibling.innerHTML=''" onkeydown="this.parentNode.nextSibling.innerHTML=''"/>
								</td>
								<td width="100" style="text-align:left;" >
									<c:if test="${loginModel.validateUsername != null}">
										<img src="${pageContext.request.contextPath}/images/sys/default/login/iconNo.png" style="margin-right: 3px;width: 9px;"/>
										<span>${loginModel.validateUsername}</span>
									</c:if>
								</td>
							</tr>
							<tr>
								<th>
									<label for="password">密&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
								</th>
								<td>
									<input id="password" class="textFieldLogin" name="password" type="password" value="${loginModel.password}" onclick="this.parentNode.nextSibling.innerHTML=''" onkeydown="this.parentNode.nextSibling.innerHTML=''"/>
								</td>
								<td style="text-align:left;">
									<c:if test="${loginModel.validatePassword != null}">
										<img src="${pageContext.request.contextPath}/images/sys/default/login/iconNo.png" style="margin-right: 3px;width: 9px;"/>
										<span>${loginModel.validatePassword}</span>
									</c:if>
								</td>
							</tr>
							<tr>
								<th>
									<label for="imageNO">验证码:</label>
								</th>
								<td>
									<input id="imageNO" class="textFieldLogin" name="imageNO" type="text" value="" onclick="this.parentNode.nextSibling.innerHTML=''" onkeydown="this.parentNode.nextSibling.innerHTML=''"/>
								</td>
								<td style="text-align:left;">
									<c:if test="${loginModel.validateImageNO != null}">
										<img src="${pageContext.request.contextPath}/images/sys/default/login/iconNo.png" style="margin-right: 3px;width: 9px;"/>
										<span>${loginModel.validateImageNO}</span>
									</c:if>
								</td>
							</tr>
							<tr>
								<td colspan="3">
									<img  title="看不清?点击换一张" src="${pageContext.request.contextPath}/jcaptcha" id="safecode" onclick="this.src='${pageContext.request.contextPath}/jcaptcha?date='+new Date().getTime()"  width="100" height="40"/>
								</td>
							</tr>
							<tr>
								<td></td>
								<td colspan="2">
									<div class="MBbuttonSubmit15"><input type="submit" value="登陆" /></div>
									<div class="MBbuttonSubmit15"><input type="reset" value="重置" /></div>
								</td>
							</tr>
						</table>
					</form>
					<div class="close" />
					</div>
				</div>
			</div>
		</div>
		<div id="loginButtom">
			<label>Copyright 2011 &copy; 51SHOP & FSY ( 51SHOP-SYS-V1.0 ) </label>
		</div>
</html>